package com.gh.mapper;

import com.gh.entity.Student;
import com.gh.entity.StudentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {
    int countByExample(StudentExample example);

    int deleteByExample(StudentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    int insertSelective(Student record);

    List<Student> selectByExample(StudentExample example);

    Student selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    List<Student> findAll(List<Integer> list) throws Exception;

    Integer findTotal() throws Exception;

    void update(Student student) throws Exception;

    List<Student> findByAddress(String address) throws Exception;

    List<Student> findByName(String name) throws Exception;

    List<Student> findById(int id) throws Exception;
}